@import '@/styles/variables.scss';


.plot-container {
  width: 300px;
  height: 250px;
  box-sizing: border-box;
  padding: 5px 5px;
  padding-bottom: 0;
  // background: url('~@/assets/img/plot/plotBg2.png') no-repeat center / 100% 100%;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  z-index: 2000;

  .plot-container__header {
    height: 40px;
    line-height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    border-bottom: 1px solid #003b42;

    ul {
      display: flex;

      li {
        display: flex;
        align-items: center;
        margin-left: 18px;
      }
    }

    input[type='checkbox'] {
      width: 22px;
      height: 22px;
      background-color: rgba(0, 19, 48, 0) !important;
      -webkit-appearance: none;
      border: 1px solid #0092ff;
      outline: none;
      margin-right: 5px;

      &:checked {
        background: url('~@/assets/img/plot/dh.png') no-repeat center;
      }
    }

    .el-color-picker {
      margin-right: 5px;

      ::v-deep .el-color-picker__trigger {
        border-color: #0092ff;
      }
    }
  }

  .plot-container__content {
    flex: 1;
    padding: 0px 0 5px 3px; // 这里数值是计算得来的不要改
    box-sizing: border-box;
    position: relative;

    ul {
      width: 100%;
      height: 100%;
    }

    li {
      position: relative;
      float: left;
      width: 58px;
      height: 58px;
      margin: 0 4px 10px 4px;
      cursor: pointer;
      background: url('~@/assets/img/plot/ct.png') no-repeat center / 100% 100%;

      &:hover {
        background-image: url('~@/assets/img/plot/dj.png');
      }

      .plot-container__icon {
        display: block;
        width: 54px;
        height: 54px;
      }

      p {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translate(-50%, 0);
        width: 100%;
        font-size: 12px;
        text-align: center;
      }
    }

    .plot-container__content--select {
      background-image: url('~@/assets/img/plot/dj.png');
    }
  }

  .plot-container__footer {
    height: 48px;
    line-height: 48px;
    // padding: 0 10px;
    box-sizing: border-box;
    border-top: 1px solid #003b42;

    ul {
      display: flex;
      justify-content: center;

      li {
        display: flex;
        height: 48px;
        justify-content: center;
        align-items: center;
        margin-left: 18px;
        cursor: pointer;
      }
    }
  }

  .popover_span {
    position: fixed;
    display: none;
    z-index: 3000;
    width: 220px;
    padding: 20px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, .3);

    textarea {
      padding: 10px;
      background-color: rgba(0, 0, 0, .3);
      color: #fff;
      outline-style: none;
      resize: none;
      font-size: 18px;
    }

    button {
      float: right;
      margin-top: 10px;
      padding: 0 10px;
    }
  }
}
